package dao;

import hibernate.HibernateUtil;

import java.util.List;

import modelo.Teste;

import org.hibernate.Session;

public class GenericDAO<T> {
	
	  public List<Object> BuscarTodos() {  
		  Session session = new HibernateUtil().getSession();
		  List<Teste> lista = session.createQuery("select * from teste").list();
		  for (Teste p : lista) {
		  System.out.println(p.getNome());
		  }
		return null; 
	   }  
	
}
